package com.atguigu.lease.web.admin.mapper;

import com.atguigu.lease.model.entity.FacilityInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author liubo
 * @description 针对表【facility_info(配套信息表)】的数据库操作Mapper
 * @createDate 2023-07-24 15:48:00
 * @Entity com.atguigu.lease.model.FacilityInfo
 */
@Mapper
public interface FacilityInfoMapper extends BaseMapper<FacilityInfo> {

    /**
     * 根据公寓ID获取配套信息
     *
     * @param id 公寓ID
     * @return 公寓配套信息列表
     */
    List<FacilityInfo> selectListByApartmentId(Long id);

    /**
     * 根据房间id查询配套信息列表
     *
     * @param id 房间id
     * @return 配套信息列表
     */
    List<FacilityInfo> selectListByRoomId(Long id);
}




